import fs from 'fs';
// 排除重载的依赖项
const optimizeDeps = [
    'axios',
    'echarts',
    'pinia',
    'qs',
    'xlsx',
    'element-plus/es',
    'element-plus/es',
    'element-plus/es/locale/lang/zh-cn',
    'element-plus/es/locale/lang/en',
    'element-plus/es/components/form/style/index',
    'element-plus/es/components/radio-group/style/index',
    'element-plus/es/components/radio/style/index',
    'element-plus/es/components/checkbox/style/index',
    'element-plus/es/components/checkbox-group/style/index',
    'element-plus/es/components/switch/style/index',
    'element-plus/es/components/time-picker/style/index',
    'element-plus/es/components/date-picker/style/index',
    'element-plus/es/components/col/style/index',
    'element-plus/es/components/form-item/style/index',
    'element-plus/es/components/alert/style/index',
    'element-plus/es/components/breadcrumb/style/index',
    'element-plus/es/components/select/style/index',
    'element-plus/es/components/input/style/index',
    'element-plus/es/components/breadcrumb-item/style/index',
    'element-plus/es/components/tag/style/index',
    'element-plus/es/components/pagination/style/index',
    'element-plus/es/components/table/style/index',
    'element-plus/es/components/table-column/style/index',
    'element-plus/es/components/card/style/index',
    'element-plus/es/components/row/style/index',
    'element-plus/es/components/button/style/index',
    'element-plus/es/components/menu/style/index',
    'element-plus/es/components/sub-menu/style/index',
    'element-plus/es/components/menu-item/style/index',
    'element-plus/es/components/option/style/index',
    'mitt',
    'vue',
    'vue-router',
    'vue-types',
    '@iconify/iconify',
    '@vueuse/core',
    'echarts-wordcloud',
    'qrcode',
    '@wangeditor/editor',
    '@wangeditor/editor-for-vue',
    'vue-json-pretty',
    '@zxcvbn-ts/core',
    'dayjs',
    'cropperjs',
    'vue-i18n',
    'moment',
    'vue-simple-uploader',
    'animate.css',
    '@vue-office/pdf'
];
fs.readdirSync('node_modules/element-plus/es/components').forEach((dirname) => {
    fs.access(
        `node_modules/element-plus/es/components/${dirname}/style/css.mjs`,
        (err) => {
            if (!err) {
                optimizeDeps.push(`element-plus/es/components/${dirname}/style/css`);
            }
        }
    );
});
export default optimizeDeps;